package com.wang.myapplication.network.bean;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by xhwang on 2018/4/26.
 */

public class BBSListsResponse {
    private String message;
    private int status;
    private List<Data> data;
    public void setMessage(String message) {
        this.message = message;
    }
    public String getMessage() {
        return message;
    }

    public void setStatus(int status) {
        this.status = status;
    }
    public int getStatus() {
        return status;
    }

    public void setData(List<Data> data) {
        this.data = data;
    }
    public List<Data> getData() {
        return data;
    }



    public List<Data> transferDatalists(BBSListsResponse pObj) {
        List<Data> dataLists = new ArrayList<>();
        dataLists=pObj.getData();
        //List<Data> dataLists = pObj.getKmlist();
        //List<Thums> thumsList = pObj.getThums();
        //for (int i = 0; i < dataLists.size(); i++) {
        //    dataLists.get(i).viewpath = thumsList.get(i).viewpath;
        //}
        return dataLists;
    }

    public class Data {

        @SerializedName("collect_num")
        private int collectNum;
        private List<Comlist> comlist;
        @SerializedName("comment_num")
        private int commentNum;
        @SerializedName("con_id")
        private String conId;
        private String content;
        private String date;
        private List<String> files;
        @SerializedName("icon_img")
        private String iconImg;
        private List<String> img;
        @SerializedName("isLike")
        private boolean islike;
        private List<Likelist> likelist;
        @SerializedName("privateIds")
        private List<PrivateIds> privateids;
        private String time;
        private String title;
        private int type;
        private int usercount;
        private int userid;
        private String username;
        @SerializedName("view_num")
        private int viewNum;
        public void setCollectNum(int collectNum) {
            this.collectNum = collectNum;
        }
        public int getCollectNum() {
            return collectNum;
        }

        public void setComlist(List<Comlist> comlist) {
            this.comlist = comlist;
        }
        public List<Comlist> getComlist() {
            return comlist;
        }

        public void setCommentNum(int commentNum) {
            this.commentNum = commentNum;
        }
        public int getCommentNum() {
            return commentNum;
        }

        public void setConId(String conId) {
            this.conId = conId;
        }
        public String getConId() {
            return conId;
        }

        public void setContent(String content) {
            this.content = content;
        }
        public String getContent() {
            return content;
        }

        public void setDate(String date) {
            this.date = date;
        }
        public String getDate() {
            return date;
        }

        public void setFiles(List<String> files) {
            this.files = files;
        }
        public List<String> getFiles() {
            return files;
        }

        public void setIconImg(String iconImg) {
            this.iconImg = iconImg;
        }
        public String getIconImg() {
            return iconImg;
        }

        public void setImg(List<String> img) {
            this.img = img;
        }
        public List<String> getImg() {
            return img;
        }

        public void setIslike(boolean islike) {
            this.islike = islike;
        }
        public boolean getIslike() {
            return islike;
        }

        public void setLikelist(List<Likelist> likelist) {
            this.likelist = likelist;
        }
        public List<Likelist> getLikelist() {
            return likelist;
        }

        public List<PrivateIds> getPrivateids() {
            return privateids;
        }

        public void setPrivateids(List<PrivateIds> pPrivateids) {
            privateids = pPrivateids;
        }

        public void setTime(String time) {
            this.time = time;
        }
        public String getTime() {
            return time;
        }

        public void setTitle(String title) {
            this.title = title;
        }
        public String getTitle() {
            return title;
        }

        public void setType(int type) {
            this.type = type;
        }
        public int getType() {
            return type;
        }

        public void setUsercount(int usercount) {
            this.usercount = usercount;
        }
        public int getUsercount() {
            return usercount;
        }

        public void setUserid(int userid) {
            this.userid = userid;
        }
        public int getUserid() {
            return userid;
        }

        public void setUsername(String username) {
            this.username = username;
        }
        public String getUsername() {
            return username;
        }

        public void setViewNum(int viewNum) {
            this.viewNum = viewNum;
        }
        public int getViewNum() {
            return viewNum;
        }
    }

    public class PrivateIds {

        @SerializedName("Key")
        private int key;
        @SerializedName("Value")
        private String value;
        public void setKey(int key) {
            this.key = key;
        }
        public int getKey() {
            return key;
        }

        public void setValue(String value) {
            this.value = value;
        }
        public String getValue() {
            return value;
        }

    }
    
    public class Likelist {
        @SerializedName("con_id")
        private int conId;
        private String content;
        private String date;
        @SerializedName("user_icon")
        private String userIcon;
        private String userid;
        private String username;
        public void setConId(int conId) {
            this.conId = conId;
        }
        public int getConId() {
            return conId;
        }

        public void setContent(String content) {
            this.content = content;
        }
        public String getContent() {
            return content;
        }

        public void setDate(String date) {
            this.date = date;
        }
        public String getDate() {
            return date;
        }

        public void setUserIcon(String userIcon) {
            this.userIcon = userIcon;
        }
        public String getUserIcon() {
            return userIcon;
        }

        public void setUserid(String userid) {
            this.userid = userid;
        }
        public String getUserid() {
            return userid;
        }

        public void setUsername(String username) {
            this.username = username;
        }
        public String getUsername() {
            return username;
        }
    }

    public class Comlist {

        @SerializedName("bbs_content")
        private String bbsContent;
        private int bbsid;
        private String caf;
        @SerializedName("con_id")
        private int conId;
        private String content;
        private String date;
        @SerializedName("icon_img")
        private String iconImg;
        private List<String> img;
        @SerializedName("likeCount")
        private int likecount;
        private int userid;
        private String username;
        public void setBbsContent(String bbsContent) {
            this.bbsContent = bbsContent;
        }
        public String getBbsContent() {
            return bbsContent;
        }

        public void setBbsid(int bbsid) {
            this.bbsid = bbsid;
        }
        public int getBbsid() {
            return bbsid;
        }

        public void setCaf(String caf) {
            this.caf = caf;
        }
        public String getCaf() {
            return caf;
        }

        public void setConId(int conId) {
            this.conId = conId;
        }
        public int getConId() {
            return conId;
        }

        public void setContent(String content) {
            this.content = content;
        }
        public String getContent() {
            return content;
        }

        public void setDate(String date) {
            this.date = date;
        }
        public String getDate() {
            return date;
        }

        public void setIconImg(String iconImg) {
            this.iconImg = iconImg;
        }
        public String getIconImg() {
            return iconImg;
        }

        public void setImg(List<String> img) {
            this.img = img;
        }
        public List<String> getImg() {
            return img;
        }

        public void setLikecount(int likecount) {
            this.likecount = likecount;
        }
        public int getLikecount() {
            return likecount;
        }

        public void setUserid(int userid) {
            this.userid = userid;
        }
        public int getUserid() {
            return userid;
        }

        public void setUsername(String username) {
            this.username = username;
        }
        public String getUsername() {
            return username;
        }

    }


}
